<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Untitled Document</title>
        <link rel="stylesheet" type="text/css" href="./js/dijit/themes/tundra/tundra.css"/>
        <style type="text/css">
            #container {
                position: relative;
                border: 1px solid green;
                width: 960px;
                height: 600px;
            }
        </style>
    </head>
    <body class="tundra">
        <div id="container">
			<div id="toolbar"></div>
        </div>
        <div id="externalContainer">
        </div>
    </body>
</html>
<script src="./js/dojo/dojo.js">
</script>
<script type="text/javascript">
    
    dojo.require("dijit.Toolbar");
    dojo.require("dijit.form.Button");
	dojo.require('dijit.ColorPalette') ;
	dojo.require('dijit.TooltipDialog');
	dojo.require('dijit.form.DropDownButton');
	
    dojo.ready(function(){
    	toolbar = new dijit.Toolbar({},
        "toolbar");
		
		dojo.forEach(['Cut','Paste','Copy'],function(entry){
			var button =new dijit.form.Button({
				label: entry,
				showLabel:true,
				iconClass:'dijitEditorIcon dijitEditorIcon' + entry
			});
			
			toolbar.addChild( button );
		});
		
		var colorPalette = new dijit.ColorPalette({
		});
		
		dojo.connect(colorPalette.domNode, 'onchange',function(evt){
			alert(this.value);
		});
		
		var colorPaletteBtn = new dijit.form.DropDownButton({
			label: "b",
            name: "shwocolorPalette",
            dropDown: colorPalette,
            id: "showColorPaletteId"
		});
		
		toolbar.addChild( colorPaletteBtn );
		
		/*
		 * add menu
		 */
		
		
    
    
    });
    
    
    dojo.ready(function(){
        /*
         * it's the best to perform the parse time, in case we'll manipulate the dom before doc ready
         */
        dojo.parser.parse();
    });
</script>
